module.exports = {
  nav_name: '管理员设置', //生成导航菜单
  module_name: 'admin_manager',  //生成路径，与模块名相同
  api: `{
    page: commonPath + "/admin/user/pageSearch", // 会员分页
    changeState: commonPath + '/admin/user/modifyState', //会员状态编辑
    detail: commonPath + '/admin/user/get', //获取详情,
    add: commonPath + '/admin/user/add', //添加页面
  }`,
  table: {
    nav_name: "管理员列表",
    tipsText: "管理员设置 >> 管理员列表",
    //获取列表页面
    tableData: [
      { title: '序号', name: 'index', type: "normal" },
      { title: '账户名', name: 'temp', type: "normal", showObj: "{}" },
      { title: '姓名', name: 'temp', type: "normal", showObj: "{}" },
      { title: '身份', name: 'temp', type: "normal", showObj: "{}" },
      { title: '昵称', name: 'temp', type: "normal", showObj: "{}" },
      {
        title: '封面',
        name: 'courseImg',
        type: "img",
        heightVal: "60",
        widthVal: "100",
      },
      {
        title: '状态',
        name: 'state',
        type: "opts",
        showName: "stateShow",
        showObj: `{
          "1": "上架",
          "2": "下架",
        }`
      },
    ],
    tableOpt: [
      // {
      //   type: "view",
      //   text: "查看",
      //   request: false,
      //   jump: "/member_manager/see_detail_member查看"
      // },
      {
        type: "modify",
        text: "编辑",
        request: false,
        jump: "/member_manager/edit_member"
      },
      // {
      //   type: "changeState",
      //   text: "加入黑名单",
      //   request: true,
      //   url: "API.member_manager.changeState",
      //   requestType: 'post',
      //   params: `{id,  state: 2 }`, //必须为文本
      //   methodNameTag: 'Black', //方法衔接拓展名
      // },
      {
        type: "del",
        text: "删除",
        request: true,
        url: "API.identify_manager.del",
        requestType: 'post',
      },
      // {
      //   type: "changeState",
      //   text: "启用",
      //   request: true,
      //   url: "API.dynamic_manager.changeState",
      //   requestType: 'post',
      //   params: `{ state: 1 }`,
      //   methodNameTag: 'Enable', //方法衔接拓展名 用于标志不同方法
      // },
    ],
    search: {
      contentArr: {
        input1: { labelName: '账号名', inputName: 'tel' },
        input2: { labelName: '姓名', inputName: 'realName' },
        select1: {
          labelName: '性别',
          inputName: 'sex',  //输入绑定的变量
          selectOptsName: "sexOpts",
          selectOptsArr: `[
            { value: "M", label: "男" },
            { value: "F", label: "女" },
            { value: "", label: "全部" },
          ],
          `, //选项数组
        },
        select2: {
          labelName: '来源终端',
          inputName: 'sourceTerminal',
          selectOptsName: "sourceTerminalOpts",
          selectOptsArr: `[
            { value: "android", label: "android" },
            { value: "IOS", label: "IOS" },
            { value: "h5", label: "h5" },
            { value: "", label: "全部" },
          ],
          `,
        },
        date1: {
          labelName: '注册时间',
          inputName: 'registerTime',
          dateConfig: {
            startDateName: 'registerStartDate',
            endDateName: 'registerEndDate',
            dateChangeMethodsName: 'handleRegisterDateChange'
          }
        },
        date2: {
          labelName: '最后一次登录时间',
          inputName: 'lastLoginTime',
          dateConfig: {
            startDateName: 'lastLoginStartTime',
            endDateName: 'lastLoginEndTime',
            dateChangeMethodsName: 'handleLastLoginDateChange'
          }
        },
      },
      searchBtn: {
        text: "查询", //链接与table请求接口相同，不做另外配置
      },
      addBtn: {
        //搜索栏具有添加功能按钮时，设置此字段
        type: "add",
        text: "添加",
        request: false,
        jump: "/member_manager_add_page"
      }
    },
  },

  // //详情页面
  // detail_page: {
    
  // }
}
